package a.g;

import a.c.w;
import a.c.x;
import a.f.g.b;
import a.f.g.l;
import a.f.kb;
import a.f.rc;
import a.f.u;
import a.h.dc;
import a.j.g;

public class db
  extends h
{
  final String[] q = { "SHORTEST_MOVE", "INTERSECTION_BOX", "NODE_CENTER" };
  private static final String r = "SHUFFLELAYOUT";
  private static final String s = "NODE_CENTER";
  private static final String t = "INTERSECTION_BOX";
  private static final String u = "HORIZONTAL_OVERLAP_CRITERIUM";
  private static final String v = "SHORTEST_MOVE";
  private static final String w = "MINIMAL_NODE_DISTANCE";
  private static final String x = "MOVE_BENDS";
  public static int y;
  
  public db()
  {
    super("SHUFFLELAYOUT", "Roland Wiese, Sebastian Mueller", "Removes Node Overlaps");
  }
  
  public dc j()
  {
    l locall = new l();
    dc localdc = new dc(a());
    localdc.a("MINIMAL_NODE_DISTANCE", (int)locall.c(), 0, 200);
    localdc.a("HORIZONTAL_OVERLAP_CRITERIUM", this.q, locall.b());
    localdc.a("MOVE_BENDS", true);
    return localdc;
  }
  
  protected void n()
  {
    int i = f.p;
    boolean bool = f.o;
    dc localdc = i();
    l locall = new l();
    g localg = e();
    x localx = localg.B();
    localg.a(l.e, localx);
    double d = localdc.e("MINIMAL_NODE_DISTANCE");
    Object localObject1 = localg.v();
    do
    {
      if (!((w)localObject1).e()) {
        break;
      }
      localx.a(((w)localObject1).d(), d);
      ((w)localObject1).f();
      if (i != 0) {
        break label141;
      }
      if (bool) {
        break label126;
      }
    } while (!bool);
    locall.a(0.0D);
    locall.a(false);
    if (i == 0)
    {
      locall.b(true);
      label126:
      if (i == 0) {
        if (localdc.j("HORIZONTAL_OVERLAP_CRITERIUM").equals(this.q[1]))
        {
          locall.a((byte)0);
          if (i != 0) {
            break label213;
          }
          if (!bool) {
            break label207;
          }
        }
      }
      label141:
      if (i == 0)
      {
        if (localdc.j("HORIZONTAL_OVERLAP_CRITERIUM").equals(this.q[2])) {
          locall.a((byte)1);
        }
      }
      else
      {
        if (i != 0) {
          break label213;
        }
        if (!bool) {
          break label207;
        }
      }
    }
    locall.a((byte)2);
    try
    {
      label207:
      if (localdc.g("MOVE_BENDS"))
      {
        label213:
        u localu = new u(new kb(1.0D), locall);
        localObject1 = new b(localu);
      }
      else
      {
        localObject1 = new b(locall);
      }
      a((rc)localObject1);
    }
    finally
    {
      localg.j(l.e);
      localg.a(localx);
    }
  }
}



/* Location:           E:\idea\

 * Qualified Name:     a.g.db

 * JD-Core Version:    0.7.0.1

 */